from django.shortcuts import render
from rest_framework import viewsets

from meituan.models import Merchant
from quickstart.serializers import MerchantSerializer


# Create your views here.
## 创建 DRF 视图
class MerchantViewSet(viewsets.ModelViewSet):
    queryset = Merchant.objects.all()
    Serializer_class = MerchantSerializer